package com.javafactroy.kunlong.domain.login;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

@Data
@Accessors(chain = true)
public class GetInfoResp extends LoginRespDto {
    List<String> permissions;
    List<String> roles;

    User user;
    @lombok.Data
    public static class User{
        Boolean admin;
        Long userId;


    }

    public GetInfoResp() {

        super();
        permissions = new ArrayList<>();
        permissions.add("*:*:*");

        roles=new ArrayList<>();
        roles.add("admin");

        user = new User();
        user.setUserId(1l);
        user.setAdmin(true);
    }
}
